﻿<%@ Page Language="C#" MasterPageFile="~/Theme/Stander/Stander.master" AutoEventWireup="true" CodeFile="AgentList.aspx.cs" Inherits="Customer_AgentList" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Text="按名称查询："></asp:Label>
<asp:TextBox ID="txtSearchName" runat="server"></asp:TextBox>
<asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" />
<h2>代理列表</h2>
<asp:GridView id="AgentsGridView" runat="server" AllowPaging="True" PageSize="20"
    AutoGenerateColumns="False" CssClass="normal mouseOver" DataSourceID="AgentsDataSource">
    <EmptyDataTemplate>
        暂无任何代理信息.
    </EmptyDataTemplate>
    <Columns>
        <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="Agent.aspx?id={0}"
            DataTextField="Name" HeaderText="代理" />
        <asp:HyperLinkField DataNavigateUrlFields="Id"
            DataNavigateUrlFormatString="~/Bill/?agentId={0}"
            DataTextField="DealTimes" HeaderText="交易次数" />
    </Columns>
    <PagerStyle CssClass="pager" />
</asp:GridView>
<csla:CslaDataSource ID="AgentsDataSource" runat="server" 
    TypeName="Active.Core.AgentList, Active.Core"
    TypeSupportsPaging="False" TypeSupportsSorting="False" 
    OnSelectObject="AgentsDataSource_SelectObject">
</csla:CslaDataSource>
<webdiyer:aspnetpager id="aspnetPager" runat="server" OnPageChanged="aspnetPager_PageChanged"
    PageSize="15"></webdiyer:aspnetpager>
</asp:Content>

